package com.xuyiwei.mayi.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by xuyiwei on 2019/4/18.
 */
@Component
public class UserDao {
//    @Autowired
//    private JdbcTemplate jdbcTemplate;
//    public void add(String name, Integer age) {
//        String sql = "INSERT INTO users(NAME, age) VALUES(?,?);";
//        int update = jdbcTemplate.update(sql, name, age);
//        System.out.println("insertResult:" + update);
//    }

}
